// 全局引用已经移交build/utils.js处理
@import 'variables.less';
@import 'element-ui.less';
@import 'sidebar.less';
@import 'dialog.less';
* {
  padding: 0;
  margin: 0;
}
html, body, #app {
  height: 100%;
  width: 100%;
  // min-width: 1024px;
  // max-width: 1920px;
  box-sizing: border-box;
}
body {
  padding: 0;
  margin: 0;
  // 修复table表头错位问题
  .el-table th.gutter{
    display: table-cell !important;
  }
  .el-table colgroup.gutter{
    display: table-cell !important;
  }
}
#app {
  font-family: "Microsoft YaHei";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  font-size: 16px;
}
ul {
  list-style-type: none;
}
a {
  text-decoration: none;
}
a:link {
  color: #2c3e50;
}
a:visited {
  color: #2c3e50;
}
a:active {
  color: #2c3e50;
}
// @font-face {
//   font-family: "iconfont";
//   src: url("../font/iconfont.eot");
//   src: url("../font/iconfont.eot?#iefix") format("embedded-opentype"),
//     url("../font/iconfont.woff") format("woff"),
//     url("../font/iconfont.ttf") format("truetype"),
//     url("../font/iconfont.svg#iconfont") format("svg");
// }
.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}

.clearfix:after {
  content: "";
  display: block;
  visibility: hidden;
  clear: both;
  height: 0;
}
.clearfix {
  zoom: 1; /* 为了照顾ie6浏览器*/
}
/* ----------自定义下拉框Grid样式 start --------- */
.select_component {
  text-align: center;

  .el-scrollbar {
    padding-top: 38px;
  }

  .el-select-dropdown__list {
    position: static !important;

    .table_Header {
      width: 100%;
      padding: 6px 8px 0;
      box-sizing: border-box;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 9;
      background-color: #fff;
      cursor: text;
      display: flex;

      span {
        flex: 1;
        height: 39px;
        line-height: 39px;
        background-color: #f2f2f2;
        border: 1px solid #ccc;
        border-right: 0;
        padding: 0 5px;
        // box-sizing: border-box;

        &:last-child {
          border-right: 1px solid #ccc;
        }
      }
    }

    .el-select-dropdown__item {
      height: auto;
      padding: 0 8px;
      display: flex;

      &:first-of-type {
        .spanWrap {
          border-top: 0;
        }
      }

      &:last-of-type {
        .spanWrap {
          border-bottom: 1px solid #ccc !important;
        }
      }

      .spanWrap {
        width: 100%;
        border: 1px solid #ccc;
        border-bottom: 0;
        display: flex;

        p {
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          flex: 1;
          padding: 0;
          height: 36px;
          border-right: 1px solid #ccc;
          padding: 0 5px;
          // box-sizing: border-box;

          &:last-child {
            border-right: 0;
          }
        }
      }
    }
  }
}
/* ----------自定义下拉框Grid样式 end --------- */
.default_color.iconfont {
  color: @icoBtnColor;
  font-size: 20px !important;
  position: relative;
  top: 2px;
  cursor: pointer;
}

body {
  height: 100%;
  background: #e4e5e6;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}
html{
  height: 100%;
  box-sizing: border-box;
}
#app{
  height: 100%;
}
*, *:before, *:after{
  box-sizing: inherit;
}
a:focus, a:active{
  outline: none;
}
a, a:focus, a:hover{
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
div:focus {
  outline: none;
}
.fr {
  float: right;
}
.fl {
  float: left;
}
.clearfix{
  &:after{
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}
.inlineblcok {
  display: inline-block
}
.hr {
  border: none;
  border-bottom: 1px solid #dcdfe6;
  margin: 0 0 20px 0;
}

#app{
  .header{
    height: @headerHeight !important;
    min-height: @headerHeight;
  }
  .footer{
    background-color: #F0F2F5;
    text-align: center;
    line-height: 50px;
    height: 50px !important;
  }
  .footer span{
    font-size: 14px;
    color: #4B525C;
    line-height: 50px;
  }
  .el-container.is-vertical{
    overflow: hidden; // 遮挡一下header阴影
    // height: auto!important;
  }
  //sidebar字体样式
  .el-submenu__title {
    padding-left: 12px;
    height: 62px;
    line-height: 62px;
  }
  .el-submenu__icon-arrow{
    margin-top: -2px;
  }
  //修改button在primary状态下的样式
  // .el-button--primary {
  //   color: #fff;
  //   background-color: rgba(44,214,177,1);
  //   border-color: rgba(44,214,177,1);
  // }
  // .el-button:hover {
  //   background-color: rgba(44,214,177,0.7);
  //   border-color: rgba(44,214,177,0.7);
  //   color: #fff;
  // }
  // .el-button:focus {
  //   background-color: rgba(44,214,177,1);
  //   border-color: rgba(44,214,177,1);
  //   color: #fff;
  // }
  // .el-button:active {
  //   background-color: rgba(44,214,177,1);
  //   border-color: rgba(44,214,177,1);
  //   color: #fff;
  // }
  .searchBtn{
    background-color: #fff;
    border-color: rgba(44,214,177,1);
    color: rgba(44,214,177,1);
  }
  .searchBtn:hover{
    background-color: #fff;
    border-color: rgba(44,214,177,0.7);
    color: rgba(44,214,177,0.7);
  }
  .searchBtn:focus{
    background-color: #fff;
    border-color: rgba(44,214,177,1);
    color: rgba(44,214,177,1);
  }
  .searchBtn:active{
    background-color: #fff;
    border-color: rgba(44,214,177,1);
    color: rgba(44,214,177,1);
  }
  .tips {
    font-size: @lowFontSize
  }
}
.el-form .necessary_item > label {
  color: red;
}
/* 设置滚动条的样式 */
::-webkit-scrollbar {
  width: 18px !important;
  height: 18px !important;
  background-color: rgb(221, 224, 226) !important;
}
/* 滚动槽 */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 3px rgba(194, 200, 204, 0.5) !important;
  -webkit-box-shadow: inset 0 0 3px rgba(194, 200, 204, 0.5) !important;
  -moz-box-shadow: inset 0 0 3px rgba(194, 200, 204, 0.5) !important;
  -o-box-shadow: inset 0 0 3px rgba(194, 200, 204, 0.5) !important;
  -ms-box-shadow: inset 0 0 3px rgba(194, 200, 204, 0.5) !important;
  border-radius: 3px !important;
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 3px !important;
  background-color: rgb(194, 200, 204) !important;
  box-shadow: inset 0 0 3px rgba(194, 200, 204, 0.7) !important;
  -webkit-box-shadow: inset 0 0 3px rgba(194, 200, 204, 0.7) !important;
  -moz-box-shadow: inset 0 0 3px rgba(194, 200, 204, 0.7) !important;
  -o-box-shadow: inset 0 0 3px rgba(194, 200, 204, 0.7) !important;
  -ms-box-shadow: inset 0 0 3px rgba(194, 200, 204, 0.7) !important;
}
::-webkit-scrollbar-thumb:window-inactive {
  background-color: rgb(221, 224, 226) !important;
}

/*输入框number上下箭头隐藏*/
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button{
-webkit-appearance: none !important;
margin: 0;
}
input[type="number"]{-moz-appearance:textfield;}


/* 防止单行el-item高度溢出，阻挡后面col问题 */
.fixed-height .el-form-item {
  height: 40px;
}
//  状态前面的点

.clrcleDis {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: @circleOn;
  border-radius:4px;
}
.clrcleDisc {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: @circleOff;
  border-radius:4px;
}
// 保存按钮 样式

.saveBtn {
  color:#4169c1
}
// 取消按钮样式
.cancelBtn {
  color: #ccc;
}
@phFontSize:14px!important;
@phFontFamily: Microsoft YaHei!important;
@phColor: #ccc!important;
@phFontWeight: normal!important;
// 修改placeholder字体默认字号和颜色
/* - Chrome ≤56,
   - Safari 5-10.0
   - iOS Safari 4.2-10.2
   - Opera 15-43
   - Opera Mobile >12
   - Android Browser 2.1-4.4.4
   - Samsung Internet
   - UC Browser for Android
   - QQ Browser */
  ::-webkit-input-placeholder {
    font-size:@phFontSize;
    font-family: @phFontFamily;
    color:@phColor;
    font-weight: @phFontWeight;
  }

  /* Firefox 4-18 */
  :-moz-placeholder {
    font-size:@phFontSize;
    font-family: @phFontFamily;
    color:@phColor;
    font-weight: @phFontWeight;
  }

  /* Firefox 19-50 */
  ::-moz-placeholder {
    font-size:@phFontSize;
    font-family: @phFontFamily;
    color:@phColor;
    font-weight: @phFontWeight;
  }

  /* - Internet Explorer 10–11
    - Internet Explorer Mobile 10-11 */
  :-ms-input-placeholder {
    font-size:@phFontSize;
    font-family: @phFontFamily;
    color:@phColor;
    font-weight: @phFontWeight;
  }

  /* Edge (also supports ::-webkit-input-placeholder) */
  ::-ms-input-placeholder {
    font-size:@phFontSize;
    font-family: @phFontFamily;
    color:@phColor;
    font-weight: @phFontWeight;
  }

  /* CSS Working Draft */
  ::placeholder {
    font-size:@phFontSize;
    font-family: @phFontFamily;
    color:@phColor;
    font-weight: @phFontWeight;
  }

  /* 全局container_header样式 */
  .layout_container {
    position: relative;
    height: 100%;


    & > .el-header {
      min-height: 60px;
      height: auto !important;
    }
    & > .el-main {
      height: 100%;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }
  }

  .input_TextRight {
    .el-input__inner{
      text-align: right;
    }
  }
  .edui-default{
    .edui-editor {
      width: 100% !important;
    }
    .edui-editor-iframeholder {
      // width: 100% !important;
      overflow-x: auto;
      // height: 430px !important;
    }
  }
  /* message提示修改z-index */
  .messageZindex {
    z-index:2100 !important
  }
// 图片上传裁剪
.croppa-container {
  background-color: #fff;
  border: 1px solid  #ccc;
  border-radius: 4px;
  line-height: 1;
  font-size: 26px;
}

.croppa-container:hover {
  border: 1px solid  rgba(44,214,177,1);
  color: rgba(44,214,177,1);
  opacity: 1;
  //background-color:  rgba(44,214,177,1);
}
.el-message-box {
  .el-message-box__status {
    &::after {
      position: relative;
      top: -10px;
    }
  }
  .confirmAndCancelIcon {
    &::after {
      position: relative;
      top: -10px;
      content: '\e74c' !important;
      color: #1890FF;
      font-family: "iconfont" !important;
      font-size: 24px;
      font-style: normal;
      -webkit-font-smoothing: antialiased;
      -webkit-text-stroke-width: 0.2px;
    }
  }
}
.delete-messageBox {
  .el-button--primary {
    color: #F5222D;
    background-color: #fff;
    border-color: #EAEAEB;
  }
}
// loading样式图片
// .my-el-custom-spinner {
//   background: url("../img/loading.svg");
//   background-size: 200px 100px; //长宽自己设置
//   width: 200px;
//   height: 85px;
//   display: inline-block; 
// }
.el-loading-spinner .el-loading-text {
  color: #337AB7;
}
.aside_layout_container {
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}
